import baseRequest from "@/axios/baseRequest"
export default {
  // 获取菜单
  loadUserMenus(params) {
    return new Promise((resolve, reject) => {
      baseRequest.get(`/bigdata-pv-backend/loadUserMenus?includeButtons=false`).then(data => {
        resolve(data)
      }).catch(e => {
        reject(e)
      })
    })
  },
  selectDiagClassifiedStatistic(params) {
    return new Promise((resolve, reject) => {
      baseRequest.post(`/bigdata-pv-backend/homePage/selectDiagClassifiedStatistic`, params).then(data => {
        resolve(data)
      }).catch(e => {
        reject(e)
      })
    })
  },
  selectFaultTrendAnalysis(params) {
    return new Promise((resolve, reject) => {
      baseRequest.post(`/bigdata-pv-backend/homePage/selectFaultTrendAnalysis`, params).then(data => {
        resolve(data)
      }).catch(e => {
        reject(e)
      })
    })
  },
  selectArrayStringModuleDefect(params) {
    return new Promise((resolve, reject) => {
      baseRequest.post(`/bigdata-pv-backend/homePage/selectArrayStringModuleDefect`, params).then(data => {
        resolve(data)
      }).catch(e => {
        reject(e)
      })
    })
  },

}
